<?php
<<<<<<< HEAD
namespace app\admin\controller;

use app\common\controller\AdminBase;
use \think\Loader;
use \think\tool;
use \think\Db;
use \think\Paginator;

class Index extends AdminBase
{
    /**
     * 后台主面板
     * @author luffy<luffyzhao@vip.126.com>
     * @dateTime 2016-05-16T17:32:36+0800
     * @return [type] [description]
     */
    public function index()
    {
        $ruleData = Loader::model('Rule')->getMenusByRoleId($this->userRow['role_id']);
		//var_dump($ruleData);exit;
        $this->assign('userRow', $this->userRow);
        $this->assign('ruleData', $ruleData);

        return $this->fetch();	
    }

    /**
     * 主面板
     * @author luffy<luffyzhao@vip.126.com>
     * @dateTime 2016-05-17T10:13:54+0800
     * @return [type] [description]
     */
    public function main()
    {
    	echo 123;
    	/*$list = Loader::model('Main')->lists();
    	//var_dump($type = gettype($list));exit;   	
    	$page = $list->render(); //分页按钮

    	$count = Loader::model('Main')->counts(); 
   	
    	$this->assign('count',$count);
		$this->assign('list',$list);
    	$this->assign('page',$page);	
        return $this->fetch('main');*/
    }
 
    public function auth()
    {
    	//var_dump();exit;
        return "没有权限！";
    }
}
=======
// +----------------------------------------------------------------------
// | my
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\controller;

class Index extends Base
{
    public function index()
    {
        return $this->fetch('/index');
    }

    /**
     * 后台默认首页
     * @return mixed
     */
    public function indexPage()
    {
        return $this->fetch('index');
    }
}
>>>>>>> 725e43831064ac36bfd98c75641450c3c41ed15e
